# -*- coding: utf-8 -*-
# @Time : 2018/12/26 10:51
# @Author : Administrator
# @File : soapTest.py
# @Project : 4.Python
# @title :模拟SOAP协议接口测试
# from suds.client import Client
# url='http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl'
# mobileCode='15378177153'
# userID=''
# Client=Client(url=url)#实例化一个client
# res=Client.service.getMobileCodeInfo(mobileCode)   #请求接口
# print(res)
#Python-suds-jurko库模拟SOAP协议
from suds.client import Client
url='http://ws.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl'
Client=Client(url=url)
r=Client.service.qqCheckOnline('4063223458')
#print(r)
#Python-Requests库模拟SOAP协议
# import requests
# r=requests.post(url='http://ws.webxml.com.cn/webservices/qqOnlineWebService.asmx/qqCheckOnline',
#               data={'qqCode':'4063223458'})
# print(r.text)
